package com.njwb.day02;

import java.util.Scanner;

public class Test24 {
    public static void main(String[] args) {
        while(true){
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入需要打印行和列：");
            int n=sc.nextInt();
            myPrint(n);
            System.out.println();
        }
    }

    public static void myPrint(int n){
        for(int j=1;j<=n;j++){//行
            for (int i=1;i<=n;i++){//列
                System.out.print("* ");
            }
            System.out.println();
        }
    }
}
